package com.yuhong.reggie.service;

import com.yuhong.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartSerivce {
    /**
     * 添加购物车
     * @param shoppingCart
     * @return ShoppingCart
     */
    ShoppingCart addCart(ShoppingCart shoppingCart);

    /**
     * 减少购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart subCart(ShoppingCart shoppingCart);

    /**
     * 查询购物车
     * @param userId
     * @return
     */
    List<ShoppingCart>  findShopping(Long userId);

    /**
     * 删除购物车
     * @param id
     * @return
     */
    Integer delete(Long id);
}
